import pymongo

URI = "localhost:27017"
MONGO_DB = "scinet"
MONGO_COLLECTION = "bloggers"

client = pymongo.MongoClient(URI)
db = client[MONGO_DB]
collection = db[MONGO_COLLECTION]

bloggers = collection.find({"name":"张"})
bloggers = list(bloggers)
print(bloggers)
